package com.qf.feign;

import com.qf.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
@Component
@RequestMapping("/searchFallback")
public class SearchFeignFallback implements SearchFeign{
    @Override
    public String test() {
        return "数据错误，请稍后再试！";
    }

    @Override
    public User findById(Integer id) {
        return new User();
    }
}
